# 求阶乘 5! = 5*4*3*2*1
# 使用循环来解决
# i=5000
# result=1
# while i>0:
#     result=result*i
#     # print(i)
#     i-=1
#     pass
# print(result)
def digui(n):
    if n==1:
        return 1
    return n*digui(n-1)
    pass
print(digui(5))
# 5*(4*(3*(2*(1))))

